<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String first = request.getParameter("first");
	String second = request.getParameter("second");	
	if(first == null || first.equals("")){
		first = "0";
	}
	if(second == null|| second.equals("")){
		second = "0";
	}
%>
<jsp:include page="nav/monitor_add.jsp"/>
<jsp:include page="nav/monitor_select.jsp"/>
<nav class="top1 navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">	 
	<div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="index.html">平台监控</a>
    </div>
    <ul class="nav navbar-nav navbar-right">
    	 <li class="dropdown">
       		<a href="#" class="dropdown-toggle avatar" data-toggle="dropdown"><i class="fa fa-laptop"></i></a>
       		<ul class="dropdown-menu">
				<li class="dropdown-menu-header text-center">
					<strong>系统信息</strong>
				</li>
				<li class="m_2"><a data-toggle="modal" data-target=".addModel"><i class="fa fa-plus"></i> 系统添加 <span id="monitorAppCount" class="label label-info">42</span></a></li>
				<li class="m_2"><a data-toggle="modal" data-target=".exchangeModel"><i class="fa fa-exchange"></i> 系统切换 <span id="monitorAppAuth" class="label label-success">lily000001</span></a></li>
				<li class="m_2"><a id="reloadMonitorCache" data-toggle="modal" data-target=".reloadMonitorCache"><i class="fa fa-bars"></i> 缓存重置 </a></li>
				<li><a id="monitorLoginOut"><i class="fa fa-power-off"></i> 系统退出 </a></li>			
				<li class="dropdown-menu-header text-center">
					<strong>地址信息</strong>
				</li>
				<li class="m_2"><a href="#"><i class="fa fa-laptop"></i>IP地址<span id="monitorAppIP" class="label label-primary">127.0.0.1</span></a></li>
				<li class="m_2"><a href="#"><i class="fa fa-laptop"></i>端口<span id="monitorAppPort" class="label label-danger">7001</span></a></li>
				<li class="m_2"><a href="#"><i class="fa fa-laptop"></i>通讯方式<span id="monitorAppSSL" class="label label-default">HTTP</span></a></li>
       		</ul>
     	</li>
    </ul>
    <script type="text/javascript">
    	regMonitorLoginOut();
    	regMonitorReload();
    	regPageOn();
    </script> 
	<jsp:include page="monitor_menu.jsp">
		<jsp:param value="<%=first%>" name="first"/>
		<jsp:param value="<%=second%>" name="second"/>
	</jsp:include>
</nav>